﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000EAD RID: 3757
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueCommonKeyword : IMessage<RogueCommonKeyword>, IMessage, IEquatable<RogueCommonKeyword>, IDeepCloneable<RogueCommonKeyword>, IBufferMessage
	{
		// Token: 0x17002FA8 RID: 12200
		// (get) Token: 0x0600A859 RID: 43097 RVA: 0x001C6BFC File Offset: 0x001C4DFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueCommonKeyword> Parser
		{
			get
			{
				return RogueCommonKeyword._parser;
			}
		}

		// Token: 0x17002FA9 RID: 12201
		// (get) Token: 0x0600A85A RID: 43098 RVA: 0x001C6C03 File Offset: 0x001C4E03
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueCommonKeywordReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002FAA RID: 12202
		// (get) Token: 0x0600A85B RID: 43099 RVA: 0x001C6C15 File Offset: 0x001C4E15
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueCommonKeyword.Descriptor;
			}
		}

		// Token: 0x0600A85C RID: 43100 RVA: 0x001C6C1C File Offset: 0x001C4E1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonKeyword()
		{
		}

		// Token: 0x0600A85D RID: 43101 RVA: 0x001C6C24 File Offset: 0x001C4E24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonKeyword(RogueCommonKeyword other) : this()
		{
			this.keywordId_ = other.keywordId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A85E RID: 43102 RVA: 0x001C6C49 File Offset: 0x001C4E49
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonKeyword Clone()
		{
			return new RogueCommonKeyword(this);
		}

		// Token: 0x17002FAB RID: 12203
		// (get) Token: 0x0600A85F RID: 43103 RVA: 0x001C6C51 File Offset: 0x001C4E51
		// (set) Token: 0x0600A860 RID: 43104 RVA: 0x001C6C59 File Offset: 0x001C4E59
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint KeywordId
		{
			get
			{
				return this.keywordId_;
			}
			set
			{
				this.keywordId_ = value;
			}
		}

		// Token: 0x0600A861 RID: 43105 RVA: 0x001C6C62 File Offset: 0x001C4E62
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueCommonKeyword);
		}

		// Token: 0x0600A862 RID: 43106 RVA: 0x001C6C70 File Offset: 0x001C4E70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueCommonKeyword other)
		{
			return other != null && (other == this || (this.KeywordId == other.KeywordId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A863 RID: 43107 RVA: 0x001C6CA0 File Offset: 0x001C4EA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.KeywordId != 0U)
			{
				num ^= this.KeywordId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A864 RID: 43108 RVA: 0x001C6CDF File Offset: 0x001C4EDF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A865 RID: 43109 RVA: 0x001C6CE7 File Offset: 0x001C4EE7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A866 RID: 43110 RVA: 0x001C6CF0 File Offset: 0x001C4EF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.KeywordId != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.KeywordId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A867 RID: 43111 RVA: 0x001C6D24 File Offset: 0x001C4F24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.KeywordId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.KeywordId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A868 RID: 43112 RVA: 0x001C6D62 File Offset: 0x001C4F62
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueCommonKeyword other)
		{
			if (other == null)
			{
				return;
			}
			if (other.KeywordId != 0U)
			{
				this.KeywordId = other.KeywordId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A869 RID: 43113 RVA: 0x001C6D93 File Offset: 0x001C4F93
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A86A RID: 43114 RVA: 0x001C6D9C File Offset: 0x001C4F9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 88U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.KeywordId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004465 RID: 17509
		private static readonly MessageParser<RogueCommonKeyword> _parser = new MessageParser<RogueCommonKeyword>(() => new RogueCommonKeyword());

		// Token: 0x04004466 RID: 17510
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004467 RID: 17511
		public const int KeywordIdFieldNumber = 11;

		// Token: 0x04004468 RID: 17512
		private uint keywordId_;
	}
}
